package com.meida.module.bus.client.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.meida.common.mybatis.base.entity.AbstractEntity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import com.meida.common.mybatis.annotation.TableAlias;

/**
 * 商品表
 *
 * @author flyme
 * @date 2022-03-01
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("bus_goods")
@TableAlias("goods")
@ApiModel(value="BusGoods对象", description="商品表")
public class BusGoods extends AbstractEntity {

private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "goodsId", type = IdType.ASSIGN_ID)
    private Long goodsId;

    @ApiModelProperty(value = "商品名称")
    private String goodsName;

    @ApiModelProperty(value = "商品价格")
    private BigDecimal goodsPrice;

    @ApiModelProperty(value = "会员价格")
    private BigDecimal vipPrice;

    @ApiModelProperty(value = "代理商价格")
    private BigDecimal agentPrice;

    @ApiModelProperty(value = "商品图片（轮播图 ）")
    private String goodsImg;

    @ApiModelProperty(value = "详情图")
    private String detailsImg;

    @ApiModelProperty(value = "商品类型Id")
    private Long categoryId;

    @ApiModelProperty(value = "(1可使用积分，2不可使用)")
    private Integer isIntegral;

    @ApiModelProperty(value = "所需积分值")
    private Integer integralValue;

    @ApiModelProperty(value = "商品描述")
    private String goodsDesc;

    @ApiModelProperty(value = "库存")
    private Integer inventory;

    @ApiModelProperty(value = "销量")
    private Integer sales;

    @ApiModelProperty(value = "真实销量")
    private Integer realSales;

    @ApiModelProperty(value = "封面图")
    private String coverImg;

    @ApiModelProperty(value = "有效期多少天")
    private Integer validDay;

    @ApiModelProperty(value = "(1有有效期，2无有效期)")
    private Integer isHaveValidDay;

    @ApiModelProperty(value = "是否上架（2不上架，1上架）")
    private Integer isShelf;

    @ApiModelProperty(value = "是否上架到代理商")
    private Integer isShelfAgent;

    @ApiModelProperty(value = "首页是否推荐(1推荐，2不推荐）")
    private Integer isHomeRecommend;

    @ApiModelProperty(value = "商城是否推荐(1推荐，2不推荐）")
    private Integer isMallRecommend;

    @ApiModelProperty(value = "是否在商城展示")
    private Integer isShowShop;

    @ApiModelProperty(value = "是否限制数量(1限制，2不限制)")
    private Integer isLimitNumber;

    @ApiModelProperty(value = "排序")
    private Integer goodsSort;

    @ApiModelProperty(value = "扫码文字说明")
    private String useDesc;

    @ApiModelProperty(value = "是否删除")
    private Integer deleted;

}
